Store (Client) Class
A lightweight datastore wrapper
Item Index
Methods
Methods
Options
()
private
Options (Configuration)
Options.constructor
()
private
Options.constructor
process
(
Boolean
-
action
-
options
-
item
-
callback
-
each
Asynchronous remote action processing
Parameters:
-
action
String[list, get, update, remove]
-
options
Objectconfiguration
-
item
Objectarbitrary object *
-
callback
Functionhandle
-
each
Booleanapply callback fnc for each object? (default: false)
Returns:
Boolean:
Returns true on success
processSync
(
Boolean
-
action
-
options
-
item
-
callback
-
each
Synchronous remote action processing
Parameters:
-
action
String[list, get, update, remove]
-
options
Objectconfiguration
-
item
Objectarbitrary object *
-
callback
Functionhandle
-
each
Booleanapply callback fnc for each object? (default: false)
Returns:
Boolean:
Returns true on success
Remote
()
private
Repository.Remote
Remote.constructor
()
private
Repository.Remote.constructor
Repository
()
private
Repository
Repository.constructor
()
private
Repository constructor
Properties
options.cache
Boolean
Cache enabled
Default: true
options.jsonp
String
JSONP callback fnc name
Default: "callback"
options.namespace
String
Storage namespace
Default: "default"
options.ttl
Number
Cache Lifetime
Default: 3600
options.url
String
Remote storage location
Default: "//localhost/store/examples/server.php"